.tab {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: #f1f1f1;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: inherit;
    cursor: pointer;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #ddd;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-content {
    padding: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}